package com.dhcc.crftool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "crf_metadata")
@ApiModel(value = "CRF表数据表")
public class CRFMetaData extends Model<CRFMetaData> {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    @TableField("id")
    private Integer id;


    @ApiModelProperty(value = "表单gui")
    @TableField("form_id")
    private String formId;

    @ApiModelProperty("元数据")
    @TableField("metadata")
    private Object metaData;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
